﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lion.WeiXin.Core.Models
{
   [Serializable]
    /// <summary>
    /// 验证码
    /// </summary>
   public class ValidateModel:BaseModel
    {
      
        /// <summary>
        /// 随机验证码
        /// </summary>
        public string Code {get;set;}

        /// <summary>
        /// 业务类型:区分不同类型验证码,暂时预留
        /// </summary>
        public string BizType { get; set; }

        /// <summary>
        /// 业务Id
        /// </summary>
        public string BizId { get; set; }
       
        /// <summary>
        /// 微信openid： 据此唯一获取验证码
        /// </summary>
        public string OpenId {get;set;}

        /// <summary>
        /// 有效开始时间
        /// </summary>
        public DateTime StartDate {get;set;}

        /// <summary>
        /// 有效结束时间
        /// </summary>
        public DateTime EndDate {get;set;}


        public string EndDateString {
            get {
                return this.EndDate.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }

    }
}
